<div class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span ng-repeat="item in items" class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="" ng-switch="type">
                <p ng-switch-when="end">Game over</p>
                <p ng-switch-when="start">Game</p>
                <p ng-switch-default>Tic Tac Toe </p>
            </a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li ng-repeat="item in items">
                    <a ng-if="item.link !== false" onclick="$('.navbar-collapse').collapse('hide');" href="{{item.link}}"> {{item.title}} </a>
                    <a ng-if="item.link === false" onclick="$('.navbar-collapse').collapse('hide');" ng-click=" item.func() "> {{item.title}} </a>
                </li>
            </ul>
        </div>
    </div>
</div>